package demo1;

public class Main {

    public static void main(String[] args) {
//        MyThead myThead1 = new MyThead();
//        MyThead myThead2 = new MyThead();
//        myThead2.setName("线程2");
//        myThead1.setName("线程1");
//        //开启线程
//        myThead1.start();
//        myThead2.start();


//        MyRun mr = new MyRun();
//        Thread thread1 = new Thread(mr);
//        Thread thread2 = new Thread(mr);
//        thread1.setName("线程1");
//        thread2.setName("线程2");
//        thread1.start();
//        thread2.start();


        //创建callable对象
        MyCallable mc = new MyCallable();
        //创建FutureTask对象
    }
}
